<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2021/12/14
 * Time: 10:29
 */
$key=$_COOKIE['userkey'];
session_start();
if(!isset($_SESSION[$key])){
    echo '<a href="../login/loginUI.php">请重新登陆</a>';
    die;
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>取钱</h1>
<form method="post" enctype="multipart/form-data" action="moneyout_Action.php" >
    您的当前余额为：<?php
    echo $_SESSION[$key]['card_money'];
    ?>
    <br/>
    <input type="text" name="money" placeholder="请输入取款金额"><br/>
    <input type="submit">
</form>
</body>
</html>